<extend name="Layout/main" />
<block name="css"></block>
<block name="style"></block>
<block name="script"></block>
<block name="js"></block>
<block name="model">合同管理</block>
<block name="controller">合同管理</block>
<block name="action">合同管理</block>
<block name="desc"></block>
<block name="content">
	<div class="box box-primary">
		<div class="box-header with-border">
			<h3 class="box-title">支付记录列表</h3>
			<div class="box-tools">
				<div class="input-group col-sm-1 pull-right">
					<div class="input-group-btn">
						<button type="button" class="btn btn-default" rel-url="{:U('form')}" rel-action="dialog">
							<i class="fa fa-file-text"></i>
							新增
						</button>
					</div>
					
					<input type="button" value="下载报表" onclick="window.open('download?{:http_build_query(I('get.'))}')" class="btn btn-info">
				</div>
			</div>
		</div>
		<div class="box-body table-responsive">
			<table class="table table-bordered table-striped table-hover">
				<tbody>
				<notempty name="data">
					<tr>
						<th class="text-center">编号</th>
						<th class="text-center">合同编号</th>                        
						<th class="text-center">支付金额</th>
						<th class="text-center">姓名</th>
						<th class="text-center">身份证号</th>
						<th class="text-center">支付时间</th>
						<th class="text-center">状态</th>
						<th class="text-center">操作</th>
					</tr>
					<volist name='data' id='items'>
						<tr>
							<td class="text-center">{$items.contract_id}</td>
							<td class="text-center">{$items.contract_number}</td>
							<td class="text-center">{$items.amount}</td>
							<td class="text-center">{$items.contract_name}</td>
							<td class="text-center">{$items.contract_cardid}</td>
							<td class="text-center">{$items.time}</td>
							<td class="text-center">{$items.status}</td>
							<td class="text-center">
								<a href="{$items.edit}" rel-action="dialog">编辑</a>
								<a href="{$items.detail}" rel-action="dialog">查看</a>
								<a href="{$items.query}" rel-action="dialog">查询</a>
								<a href="{$items.delete}" rel-action="delete">删除</a>
							</td>
						</tr>
					</volist>
					<else />
					<tr><td>暂无符合条件记录</td></tr>
				</notempty>
				</tbody>
			</table>
		</div>
		<notempty name="data">
			<div class="box-footer clearfix">
				{$page}
			</div>
		</notempty>
	</div>
</block>